package com.yuan.model_community.domain;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import me.zhengjie.base.BaseEntity;

import javax.persistence.*;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 小区-公告实体类
 */
@Data
@Entity
@Table(name = "common_notice")
public class CommunityNotice extends BaseEntity implements Serializable {

    //主键
    @Id
    @ApiModelProperty(value = "ID", hidden = true)
    @NotNull(groups = BaseEntity.Update.class)
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer noticeId;

    @ApiModelProperty(value = "小区-物业人员id")
    private Long userId;

    @ApiModelProperty(value = "小区-公告标题")
    private String noticeTitle;

    @ApiModelProperty(value = "小区-公告内容")
    private String noticeText;

    @ApiModelProperty(value = "小区-发布时间")
    private String noticeTime;

    @Transient
    @ApiModelProperty(value = "小区-发布人名称")
    private String fullName;

}
